<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include/commons.jsp"%>
<h2 class="contentTitle">部门详情--${dept.deptName}</h2>
<form method="post" action="sys/users/add.action?op=save&navTabId=userLiNav&callbackType=closeCurrent" class="required-validate pageForm" onsubmit="return validateCallback(this, navTabAjaxDone);">
	<input type="hidden" name="userType" value="PERSON"/>
	<div class="pageFormContent">
		<h3>基本资料</h3>
		<div class="divider"></div>
		<p>
			<label>部门名称：</label>
			<label>${dept.deptName}</label>
		</p>
		<p>
			<label>部门类型：</label>
			<label><c:forEach items="${deptType}" var="t">
						<c:if test="${dept.deptType eq t.value}">${t.name}</c:if>
					</c:forEach></label>
		</p>
		<p>
			<label>部门简介：</label>
			<label>${deptBrief}</label>
		</p>
		<p>
			<label>部门排序：</label>
			<label>${dept.deptOrd}</label>
		</p>
	<table class="table" layoutH="138" width="100%">
		<thead>
			<tr>
				<th width="100" orderField="userName" class="${param.orderField eq 'userName' ? param.orderDirection : ''}">用户名</th>
				<th width="80" orderField="loginName" class="${param.orderField eq 'loginName' ? param.orderDirection : ''}">登录名</th>
				<th width="80" orderField="email" class="${param.orderField eq 'email' ? param.orderDirection : ''}">电子邮件</th>
				<th width="90" orderField="isLock" class="${param.orderField eq 'isLock' ? param.orderDirection : ''}">用户状态</th>
				<th width="90" orderField="userOrd" class="${param.orderField eq 'userOrd' ? param.orderDirection : ''}">用户排序</th>
				<th width="80" orderField="createTime" class="${param.orderField eq 'createTime' ? param.orderDirection : ''}">创建时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${dept.users}">
			<tr target="slt_uid" rel="${item.id}">
				<td><a href="sys/users/view.action?user.id=${item.id}" rel="userViewNav" title="查看用户" target="navTab">${item.userName}</a></td>
				<td><a href="sys/users/view.action?user.id=${item.id}" rel="userViewNav" title="查看用户" target="navTab">${item.loginName}</a></td>
				<td>${item.email}</td>
				<td>
				<c:choose>
					<c:when test="${item.isLock==0}">正常</c:when>
					<c:otherwise>锁定</c:otherwise>
				</c:choose>
				</td>
				<td>${item.userOrd}</td>
				<td><fmt:formatDate pattern="yyyy-MM-dd HH:mm" value="${item.createTime}"/></td>
			</tr>
			</c:forEach>
			<c:if test="${empty dept.users || fn:length(dept.users)==0}">
				<tr><td colspan="6"><div style="color: red;margin-left: 12px;">提示：暂无数据</div></td></tr>
			</c:if>
		</tbody>
	</table>
	</div>
</form>